Added accelerometer listener and display