Added namespace to events, added initEnd and destroyEnd events