Adding Accelerometer delegate to change flip button position, and also improving flip transition