updating id after succesful save()