fixed exit on main window
fixed black boxes on main window