replaced .add with .send in the frontend componend, wrote most of backend component