completed first working version of the frontend