fixed old names array update and added pop up success message