Rewrite navigation system.
Code style, and add <html> root tag.