Getting the first tab to function correctly.