make selectionLayer not a plugin