next and previous buttons added to modal