diff --git a/app/elementslistmodel.cpp b/app/elementslistmodel.cpp
index b206fe759d50830971c7fbabfd2fff32351a3d4f..476ff169086815ce63ad6e9ec05e6ed8c3c0f72d 100644
--- a/app/elementslistmodel.cpp
+++ b/app/elementslistmodel.cpp
@@ -1,4 +1,5 @@
 #include "elementslistmodel.h"
+#include <qpair.h>
 
 ElementsListModel::ElementsListModel(QObject *parent)
     : QAbstractListModel(parent)
@@ -28,7 +29,10 @@ QVariant ElementsListModel::data(const QModelIndex &index, int role) const
         return QVariant();
 
     if (role == Qt::DisplayRole){
-        return QVariant::fromValue<Task>(taskVector.at(index.row()));
+        //Task t = QVariant::fromValue<Task>(taskVector.at(index.row()));
+        QString s = QString::number(taskVector.at(index.row()).getPID()) + "\t" + QString::number( taskVector.at(index.row()).getCPU() );
+        return QVariant(s);
+
     }
 
 
@@ -53,7 +57,7 @@ bool ElementsListModel::removeRows(int row, int count, const QModelIndex &parent
 
 void ElementsListModel::insertTask(Task &task, int row){
     beginInsertRows(QModelIndex(), row, row);
-    taskVector.insert(row, task);
+    taskVector.insert(row, task.getPID());
     endInsertRows();
 
 }