fixing issue with multiple jquery events