Adds a method for retrieving a promise for the XHR request from the button