saving GUI changes