debugging next button