factored out part of index.html into base.html (using jinja inheritance)