fixed contact_viewer to get the information for the correct contact rather than the last one