added events onRendered, onOpened and onClosed