public JsonResult ButtonPressed()
    {
        MvcApplication.CancelLoop();

        return(Json("canceled", JsonRequestBehavior.AllowGet));
    }