fixed the way that mergeTool and BrowseOutputDirectory closed