Adding pagination on search