Update GUI and passing device motion data