Changed front end models, views, controllers and restructured code.