factor out stepControls.js