remove unwanted php function and replace deprecated live function by on function on jquery