Abstract out header,footer; add autonav