init model (get data from sharedpreferences)