Added Redraw function to state