You can train your dog to not create a mess inside your home by scolding him whenever he creates a mess inside your home. Do not over-scold your pet dog of yours as he has his own emotions and may show aggressiveness. You can also prefer an electronic collar in this regard.