Changes for frame switching
Fix for locating the appropriate window by name or URL