fixed conflicts in view template; fixed Awecms::getPrimaryKey