anchor.diff:  		}
   		var data=JSON.parse(e['data']);
   		if (data['message']=='voteComplete') {
  +			back_to_chat("api/vote_completed");
  +			$('#voting_frame_iframe').hide();
   			$('#voting_frame_iframe').attr("src",'about:blank');
  -			$('#voting_frame_iframe').hide();
   			if (typeof MessengerExtensions != 'undefined') {
   				MessengerExtensions.requestCloseBrowser(function success() {
   					console.log("voteComplete - closing webview");
   				}, function error(err) {
  +					$('#voting_frame_back').show();
   					console.log(err);
   				});
  -			}
  -			$('.modal.cocorico').modal('hide');
  -			back_to_chat("api/vote_completed");
  +			} else {
  +				$('#voting_frame_back').show();
  +			}
   		} else if (data['message']=='voteSuccess') {
   		} else if (data['message']=='voteError') {
  -			$('.modal.cocorico').modal('hide');
  +			back_to_chat("api/vote_completed");
  +			$('#voting_frame_iframe').hide();
  +			$('#voting_frame_iframe').attr("src",'about:blank');
   			if (typeof MessengerExtensions != 'undefined') {
   				MessengerExtensions.requestCloseBrowser(function success() {
   					console.log("voteError - closing webview");
   				}, function error(err) {
  +					$('#voting_frame_error').show();
   					console.log(err);
   				});
  -			}
  +			} else {
  +				$('#voting_frame_error').show();
  +			}
  +		} else if (data['message']=='voteCanceled') {
   			back_to_chat("api/vote_completed");
  -		} else if (data['message']=='voteCanceled') {
  -			$('.modal.cocorico').modal('hide');
  +			$('#voting_frame_iframe').hide();
  +			$('#voting_frame_iframe').attr("src",'about:blank');
   			if (typeof MessengerExtensions != 'undefined') {
   				MessengerExtensions.requestCloseBrowser(function success() {
   					console.log("voteError - closing webview");
   				}, function error(err) {
  +					$('#voting_frame_error').show();
   					console.log(err);
   				});
  -			}
  -			$('#voting_frame_iframe').attr("src",'about:blank');
  -			back_to_chat("api/vote_completed");
  +			} else {
  +				$('#voting_frame_error').show();
  +			}
   		}
   	};
   	$('#voting_frame_cc').on('hidden.bs.modal', function () {
  
positive.code: 		},
  		dataType: "json",
  		success: function(data) {
  			console.log("here we go again !");
  		},
  		error: function(data) {
  			console.log("could not contact chat back");
  
negative.code: 					    </div>
  				    </div>
  				    <iframe id="voting_frame_iframe" width="100%" height="550px" style="display:none;" frameborder="0"></iframe>
  				    <div style="display:none;margin:0 auto;background:rgb(104,205,104);height:100%;" id="voting_frame_back">
  					    <div style="margin:0 auto;padding:50px 50px;color:white;text-align:center;">
  						    <p style="font-size:20px;">Merci beaucoup pour votre vote !</p>
  						    <p><i style="font-size:100px;display:inline;" class="fa fa-chevron-circle-left" aria-hidden="true"></i></p>
  						    <p style="text-align:center;">Vous pouvez à présent fermer cet onglet et retourner dans facebook messenger.</p>
  					    </div>
  				    </div>
  				    <div style="display:none;margin:0 auto;background-color:#d91d1c;height:100%;" id="voting_frame_error">
  					    <div style="margin:0 auto;padding:50px 50px;color:white;text-align:center;">
  						    <p style="font-size:20px;">Hmmm... un problème est survenu :/</p>
  						    <p><i style="font-size:100px;display:inline;" class="fa fa-chevron-circle-left" aria-hidden="true"></i></p>
  						    <p style="text-align:center;">Vous pouvez à présent fermer cet onglet et retourner dans facebook messenger.</p>
  					    </div>
  				    </div>
  			    </div>
  