created a templatetag for active tab and modified the base template to use it