Changed redraw-mechanism to avoid memory leaks due to spin-handler.