refactoring in multiple tags and selectors