added onDone function

Expand the possibility of calling functions in a tour state. To be called after submit function.