Logic of content history preview moved to service and reused in widget preview;