close button and save button not work

I'm making a popup open dialog and then in the dialog have a save button and close button. But when I click the save button or close button they can't work. The save button already save the inputtext into database but can't close the popup dialog. Here is my code how can I solve this?

bean

public void showInputNotesDialog() {
    Map<String, Object> options = new HashMap<String, Object>();
    options.put("modal", true);
    options.put("width", 400);
    options.put("height", 200);
    options.put("contentWidth", "100%");
    options.put("contentHeight", "100%");
    RequestContext.getCurrentInstance().openDialog("/prpk_paperless/input_notes_dialog.xhtml", options, null);
}

public void saveMemoNote(){
    for(int i=0; i<listProject.size(); i++){

        System.out.println(memoNote);
        MemoNote memoNote = new MemoNote();
        memoNote.setMemoNote(getMemoNote());
        memoNote.setMasterProjectSid(listProject.get(i).getId());

        try{
            memoNoteDialogController.updateMemoNote(memoNote);
        }
        catch(Exception e){
            FacesMessage messageFailed = new FacesMessage(FacesMessage.SEVERITY_ERROR,"Error","Save message data failed");          
            RequestContext.getCurrentInstance().showMessageInDialog(messageFailed);
            e.getStackTrace();
            return;
        }
    }
    RequestContext.getCurrentInstance().closeDialog(memoNote);
    memoNote = "";      
}

public void closeMemoNote(){
    memoNote = "";
    RequestContext.getCurrentInstance().closeDialog(this);
}

xhtml

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">

<h:head>
   <title>Input Notes</title>
</h:head>

<h:body>
    <h:form id="noteId">
        <h:panelGrid columns="2">
        <p:outputLabel value="Note" for="userNotesTxt" />
        <!-- <p:outputLabel value=":" /> -->
        <p:inputTextarea id="userNotesTxt" required="true"
            rows="10" cols="50"
            value="#{prpkPaperlessBean.memoNote}" />
        <p:message for="userNotesTxt"></p:message>
        </h:panelGrid>
        <p:commandButton value="Save" style="float:right;" type="submit"
            action="#{prpkPaperlessBean.saveMemoNote}" process="@form"/>
        <p:commandButton value="Close" style="float:left;" type="button"
            action="#{prpkPaperlessBean.closeMemoNote}" process="@this"/>
    </h:form>
</h:body>
</html>