added CMS url logic