layer change time selection

don't work yet because we are only scanning for the max layer