fixing conflict with jquery events