Corrected a small glitch with the tabPanes