Fix main, add CSV button & loading