added handling of secondary menu "activeness"