new handler beforeStepChange was introduced
demo fix using this handler