changed example to use a header bar