added folder dialog and save setting