functions to save divs open state in localStorage