Added ability to search for selected text