Added code to selection listener.