Implement dynamic active status for tabs on top