fix click event for tabs