updated for composition routes
moved from middlewares to controllers, still a skeleton
updated views
updated models