Updated MainView to prevent a runtime coercion error that for some reason didn't occur before.