modified main window: add u0 and ugamma