Made handleEvent blocking in accessing Sate to prevent raceconditions
CanvasHs cleaned up code
CanvasHs removed unneeded import
Merge pull request #87 from CanvasHS/stm

Fixed race conditions in event handler