finishing the frontend