update the frontend