replace .live method for .on method.

the .live method is deprecated.