modified remove functional in node controller