views.py: changes in search method + detail