Route and templates setup