api hooks for selected, create, update, and delete