how to create next button