My two cents:
When your son is with you, he's content and comfortable because his world is safe and predictable.
When his mother is around, he's pulling her attention toward himself because he's not all of the above.
My children haven't seen their father for 2 weeks. They are calm and happy and peaceful. Every time they see him, they turn into little bombs of neediness and meanness that explode all over the place.