Refactoring for Select All/Clear selection