Remove afterRender event