Modify your behaviour accordingly. If he seems upset and disgruntled, do not add to it by talking about your problems. Instead help him relax, giving him comfort and attention. That will show him that you care for him and that he really matters to you. Bring out his positive points in your conversation.
Most people like to get genuine complements.
Express your affection with loving words because that gives a feeling of belonging. Do not try to compete with him. This is often a common reason for men to stray towards women who make them feel important. It is often felt by men that they should be the bread winners of the house and they feel that they should be the better one at that. Learn to prioritise things so that it does not seem that you are always pushing him to do something or the other.