replacing the way next is clicked