Changed 'render' event to 'onRendered'