added removeLatchedEvent method