changed ui to work with qt 4.7