search function in main frame

I added search functionality to the main frame class