adding file write to settings page