update PyQt4 UI