templating stuff for active nav tabs