Changed pagination view to prev and next