
      });

      loader.ports.loadApplication.subscribe(function(userData) {
        var app = Elm.Main.init({
          node: document.getElementById("app"),
          flags: userData
        });

        let notifier = new AWN({ position: "top-right", durations: { info: null} });
        app.ports.sendNotification.subscribe(function(message) {
          console.log(`debug: ${message.debug}`);
          switch(message.status) {
          case 'success':
            notifier.success(message.content, {});
 