optimize setting ui