refactor starting and stopping of service for tracking of device orientation