correction in views + index.html
added a select_related() filter in querysets to reduce sql queries