Modified back button behavior in FileDialog