some improvements in gui.