implemented the vote view (views.py) and detail.html