Implemented necessary logic for restoring panes and editors based on saved state