Add navigation handling
Update MainPage
Format code and fix navigation uri