add sharedpreferences to SimpleUI