I want to redirect to a page when I click the button. At the same time I want to run a function from functions.php. What is the best way to do this?