removed appPreview global when done