Hides edit post form after user clicks on submit button