improve saving menu settings