Abstract CRUD to controller for views, fixed delete problem