save and restore position between document switching