update code accelerometer + views