don't create navigation when no pages
some minor bug fixes

- hide page content when javascript is enables
- some minor bug fixes