Moved pages to views, added controllers, changed routing to controllers