made a few changes to gui script