Added dynamic next button