updating next button