revised and added controllers, models, html and routes