update example with text selection