function redrawModule