fixed canceling (patch until the stop function exists)
improved UI events
added calbacks
improved demo to use new callbacks