Added support to getting the currently selected text and the current url.