Lots of changes to gui.