supply preview document functionality.