retrieve the correct display id from a provided index