Replaced deprecated live() with on()