connected delete frontend to backend