building the frontend structure