close window to return to form