improved header and related nav functions