add active menu mechanism