Gui: reading and saving settings