Added the function previewtable and config changes