MainController and routes