Refactored redirection when cancelling create form