[ALOY-817] attach appropriate event listeners in markup

Ticket: [https://jira.appcelerator.org/browse/ALOY-817](https://jira.appcelerator.org/browse/ALOY-817)