Trying to make the redirect button not close the dialog