trigger custom event on select