Working again, writing file correctly

Button displaying correctly, files can be viewed from PC using usb
connection without the need for device reboot.