add redirection and add success message