Added back the code for localStorage
changed the code for localStorage setItem
LHS menu should be expanded bydefault