changes startup sequence to create window after main app loop starts, fo...

...r iOS 7 compatability