Changed the layout of gui to enable resiszing and many other improvements.