adding sharedprefs helper