added onAfterRender to ItemView class