Update cms and framework version to 3.1.1 to fix issue CMS view modes