getSelected() now returns the last selected elem