implement search and ajax requests