changed function to display name but have id