add the function of update name and icon together