template and editor for role in variable view