prevent refreshing when the user clicks again on the activeTab