saving settings now works