refactored CRUDs from controller to route. Created better UI