Corrected issue where the first tabs' contents weren't hiding when switching tabs