Developed cookie based persistence for sidebar menu