fix errors in edit.erb