redrawing panel