refactor panel headers to use flag abstraction
Merge pull request #19 from kllevin/panel-header

refactor panel headers to use flag abstraction