setup CRUD in controller