A Hungarian dog training group called Népszigeti Kutyaiskola use a variation of model-rival training which they describe as the Mirror Method. The mirror method philosophy is that dogs instinctively learn by following the example of others in their social sphere. Core to the program is including the dog in all aspects of the owner's life and positive reinforcement of copying behaviors. Mirror method dog training relies on using a dog's natural instincts and inclinations rather than working against them.
It's not so much the dog doesn't listen, more that he doesn't understand what you want him to do. Go back to basics and don't punish him when he toilets indoors. Double your vigilance and take every opportunity to put him outside to toilet. The crucial thing is to be present when he does toilet in the correct place, so that you can reward him. This makes him keener to repeat the performance to get another treat. Conversely, if you have been telling him off for indoor accidents he may already feel inhibited about going to the toilet in your presence, including when he goes outdoors. This is one reason why it's important not to punish for inappropriate toileting.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.
Pay attention to your puppy while you're waiting for him to do his business. Sometimes, especially in the beginning, you might have to wait a little while before your puppy gets around to using the toilet. You can do some exercises or some light gardening, but keep on eye on your puppy because you'll want to take him back in as soon as he's finished.
Every dog needs to learn to walk on a leash. Besides the fact that most areas have leash laws, there will be times when keeping your dog on a leash is for his own safety. Learn how to introduce your dog or puppy to the leash, then teach him how to walk properly on the leash, even beside you on a bike. A loose leash walk teaches your dog not to pull or lunge when on the leash, making the experience more enjoyable for both you and your dog.