remove duplicate of tag input focusing code