added profile id to template