Adding event selected listener