Add the open/save file function through file diag.