showNextTab function