Added events to the layer