check for existing window