Modify the scope for layer events