click event for tag bar