There is no custom code for the UIButton OnClick method, I just dragged in the object (the window with the Enable script on it), into the UIButton delegates area, to be opened when the button is clicked.
Btw, Did you see my edit in previous post about this now being solved?