change live function into on function

Issue #1 closed.
I'm happy.