changes in controller,model and create a unit test.