implementing more funcionality in crudcontroller