i am opening a new window from an exising one. how can i close the first window without affecting the second.