Add afterRender event in toolbar