onTagShown event added