active state detection in header