added listener for accelerometer in phone