Change key to id and value titleinfo to title and type