Moved search functionality to main page