first dynamic event binding. template restructured accordingly