Modified base.html & ajax