Added GUI refreshing