first version of the search feature almost working
paged search results now working