added a boolean return value indicating successful dispatching of events