added pagination on results page