mutithreading to fix slow SettingsButton