saving settings and reverting hidden