adding term search function > app/views.py