Added search functionalities for both public and non-public section of the webpage.
Cleaned the views.py code for public and non-public routes.