move nav-tabs-justified back into a class definition and use extend instead