Added indexing functionality to SelectionLayer to get element selection working