Added main window, and basic screen handling
Fixed event handling