fix navigation bug

build <nav></nav> outside the main object