Implemented editing
Fixed error in edit form