Updated routing and main page template