Refactor unselectTag()