Handle layer selection to active layer