added selectionchange listener