[DF-1389] Restored Preview Dialog at Library. Added options to enable/diable preview dialog.