update settings model
fix init bug
Finish settings