[ALOY-817] attach appropriate event listeners in markup