Layers dropdown list logic