modal template: header condition