added a templatetag for current tab and refactored the activities template