change the instance id by key name for the gui