Added a hack to regularly repaint control