Small dog generally does this due to anxiety. You need to train him to stay alone, Offer him interactive toys - try some food dispensing one. This will keep him busy in playing. Do use some odour remover at the place and on the clothes where he urinates. This will completely remove odour.