added onSelect event
Merge pull request #1 from jaimeguaman/master

added onSelect event