fixes for accelerometer/gyro. global widgets object