Teach him the 'down' command and make him lie down beside you when you are watching tv or sitting in the chair or whenever he does it. Use the lead if necessary to start with. Give him a bed or place of his own and send him to his bed and only call him to you to fuss him on your terms. He will be feeling anxious at first so don't be too harsh on him, just firm. Take him out on your own and get him to trust you and bond with you, so he accepts you as pack leader. Plus all the usual things like making him wait for his food till you have eaten, make him wait while you go through doorways, make him sit while you put his lead on.