modifying app.py to properly display search page