Check model fucntions usage in controller and model. check controller functions usage in views, js and controlllers