where to add custom CLOSE button ?

where to add custom CLOSE button ?

$( "#dialog-form" ).dialog({
 autoOpen: false,
      height: 290,
      width: 600,
      modal: true,
 draggable: false,
 resizable:false,
 show : 'slideDown',
 
buttons: [{
        id:"addcategory",            
class:"alter",
        text: "Create",
        click: function() {
            $(this).dialog("close");
        }
    }, 
    {
        id:"btn-cancel",
        text: "Cancel",
        click: function() {
            $(this).dialog("close");
        }
    }],
      close: function() {
        allFields.val( "" ).removeClass( "ui-state-error" );
      }
    });
 
  });