Adding the frontend code