fixed FX view crashing again.. move MainView initialization to Main