event handling + coord normalization