change depricated jquery live() function for on()