fixed the frontend