replace deprecated method live() with on()