Added FileMonitor and CloseDialog