fixed sorting search and tagged results
added pagination