client side cookie storage and menu update