save active menu in cookie