when we add a cancel button no code is working to close the popup. please provide any solution on this.