more work on find/replace

Added window listener to findReplace to check for focus changes