fixing error when no ps3 controller present
fixing window close