Added MainPage and added helper classes.