Changed contacts into table with sorting feature