fixed problems in content type edit templates