Adjusting next/previous buttons