save when change theme and mode