Refactoring changes
User functions moved to usercontroller
Home functions in Homecontroller