saved submitted state as persistent, refactored model to put name, timestamp and submitted as attributes, need to test on device
fixed bug in sending data to device