add edit form and update method