Added pagination at top as well as bottom