after f = g+2h

improved GUI, no mouse call back,