protected void confirmOrder(ArrayList<Product> order) {
		if (productSvc == null) {
			productSvc = GWT.create(ProductService.class);
		}

		AsyncCallback<Boolean> callback = new AsyncCallback<Boolean>() {
			public void onFailure(Throwable caught) {
			}

			public void onSuccess(Boolean valid) {
				if(valid)
				{
					mainPanel.clear();
					Label text = new Label("Thank you for your purchase");
					text.setSize("400px", "200px");
					text.getElement().getStyle().setVerticalAlign(Style.VerticalAlign.MIDDLE);
					text.getElement().getStyle().setMarginTop(200, Unit.PX);
					mainPanel.add(text);
				}
				else
				{
					mainPanel.clear();
					mainPanel.clear();
					Label text = new Label("Purchase unsuccessful, check that the wares are currently in stock!");
					text.setSize("400px", "200px");
					text.getElement().getStyle().setVerticalAlign(Style.VerticalAlign.MIDDLE);
					text.getElement().getStyle().setMarginTop(200, Unit.PX);
					mainPanel.add(text);
				}	
			}
		};
		productSvc.confirmOrder(order, callback);
	}