Created the MVVM pattern. Moved MainPage to View