imported LiveView function to MainPage.xaml/cs