fix the edit form