manage folders, add preview and logic