call onComplete callback after inputs are set