Refactored list.html to extend base.html.