added controllers, views and templates