Added input/output icon in history when showing contact