SPC-845, add collapsed state to history management