Added show active function to nav pills