added accelerometer listener, switch tab