select layer when added