Event trigger

Added trigger event on selected. 
Sorry for the last pull request, this is the correct.