Fixed conflicting active states and used toggle class instead of a complicated function to show or hide news tab.