adds conditions for the template to appear in the report page