updating css selectors and text selection