fix bug calling 'live' method which is deprecated in jquery