revamped _onClick to allow a pass-through when there are no clickable layers, also more efficient looping JUST through the keys of the clickable layers rather than all of the layers