added active functionality to tabs