save and restore splitter state