Implemented the function that add data to friendlistview.