change header and li code. set absolute path to pages