reset the next and done button after each iteration