add a wizard attribute pos="after" to <code> to execute code after a step is finished