added accelerometer listener