clean up pagination function
restyled search results page