Added second tab functionality. Needs thread, and styling.