changing deprecated live function

Doesnt work on jquery 1.9+

changing from live() to on() function