begins redrawTable func