adding snippet and pagelink insert