implement controller template variables #31