disable buttons on submit: now works with edit too