location window open and close