Close dialog method added