simplificatons on views.py and ulrs in templates