Working app settings update_settings function