implemented context in CMS preview