Fix frontend to same state as backend
Fix file download route