Forcing redraw on the element before it shows