close window to return to main