separate preview and context