switch to cookie for appPreview storage