added optional after_header template in public