Fix query event handler

live is deprecated, change to ‘on’