separate controller backend frontend

Change-Id: Ic4ba9c8154a600c978e75ea82ff36569270dd656
diff --git a/src/invitation-dialog.cpp b/src/invitation-dialog.cpp
index 38665a8..717d515 100644
--- a/src/invitation-dialog.cpp
+++ b/src/invitation-dialog.cpp
@@ -31,14 +31,14 @@
 }
 
 void
-InvitationDialog::setInvitation(const std::string& alias,
-                                const std::string& chatroom,
-                                const Name& interestName)
+InvitationDialog::onInvitationReceived(QString alias, QString chatroom, Name interestName)
 {
-  std::string msg = alias;
   m_invitationInterest = interestName;
-  msg.append(" invites you to: ").append(chatroom);
-  ui->msgLabel->setText(QString::fromStdString(msg));
+
+  QString msg = QString("%1 invites you to chatroom\n %2 ").arg(alias).arg(chatroom);
+  ui->msgLabel->setText(msg);
+
+  show();
 }
 
 void