finished implementing add and remove functions (frontend)