select text to popup menu