improved gui script