work on general add/edit/delete dialog