after adding Next and previous button