add cookies and condition MenuBar