updated the deprecated call to live() for on()