fixed issues with base.html