added pre and next buttons