active layer selection functionality