remember expanded state in cookie