Issue 25: updated event handling for the list directive