Building the frontend