revised the next button.