added flag to determine preview mode in smart content