use sharedpreferences to save favourited words persistently