fork to support granular next/close button options per step