Move the searchbox logic to the searchmanager, take out searching flag from Notepad.js