Changed mainViewController to property in app delegate