Added a file safe dialog