Added functionality to stop and start the deviceorientation