Add a MainPage controller