Adds check for content type to layouts