I am guessing that you have beagles - not much of a guess considering the beautiful photos, I know.

The first thing that springs to mind are that both these behaviours are related to stress in the dog. The most likely source of stress is lack of security in the pack structure. Have a think about what the dog is allowed and not allowed to do - behaviours that are allowed that also raise the status of the dog within the pack, such as getting on the sofa with you, sleeping on your bed, being greeted as soon as you walk into the room could be the cause. Try cutting these out for a week, very strictly, and if this is the cause of the stress the undesireable behaviour may get worse for a couple of days before resolving. (The reason for it getting worse is the dog checking that you really are as strong as you suddenly seem, when you don't relax your behaviour the dog will feel secure and the stress will lift.)