added active class to the tab that is selected