friendsList to table and some changes