changed .live to .on for newer versions of jquery