Disable buttons on edit