redraw is trigger on resize