There are a few reasons your dog may be looking around frantically. Old age can lead to decreased focus and memory, as well as changes in the way your dog sees the world. If your dog is a Spitz breed, it may also experience senility - a condition where the senses of smell and motion become impaired. The inability to locate a specific object or person can also be indicative of anxiety or fear, both of which could result from a traumatic experience or an environment that's increasingly stressful for your pet. If you can rule out any of the above causes and your dog strays away from training cues or becomes agitated when left alone, then it may be worth investing in a medical examination. During this check-up, veterinarians will perform tests such as bloodwork and CT scans to determine the cause of your dog's behavior.