added binding of callbacks to support jqplot events