taking care of the frontend