completion of the frontend