separate update and delete in form