add onRun to state