add afterRender call to compositeview