Reorganize views.py
Get the order of arguments right to build_search_url