better redirection when after editing