Adjust handleTagsChanged event