Added prev and next buttons to move through pages