issue #6, hack the event problem about file dialog