update code to save and restore session for topic branch, not current tabs