App works now and displays a window