appPreview back to local

local vars still don't operate properly and need work.