Redirecting to home when cancel button is clicked