draft of part 4 currentLayer changed handler