events module tidy up and IE fixes