fix style of dart code. Mouse events also work now.