Switched app to use XAML pages