working on saving settings