redraw should render only if the component is mounted;