making buttons active in the edit form