Added new feature for preview and publish data