prepare ajax model for add/edit/delete action