Added save file dialog, but it is very rough