fixed cancel buttons on edit