implement header controller