Implement new active tab directive
Clean syntax
Update activetab to streamlined format