add redraw functionality