add flash errors and fix folder view bug