made changes to gui script