keep content when changing modes, closes #15