Corrected views and base.html