manipulate the behavior of the selected text