saving a boolean to keep the sidebar closed when true