dont call afterRender unless we are on the client