Move charts menus to layout.html

And fix remaining relative links.