changes for preview and trash