trying to get window close to work