edited models to include ContentType, creating contexts using templates