crud_controller works
fix model
make code more maintainable