You might have noticed that your child at times is behaving well and at other times, being irritated. But you need to understand that these are some of the behavioural changes that are needed to be modified in a manner so that your child inculcates efficient behavioural skills. Be it physically, socially, economically or even mentally, your child needs to learn behavioural skills in all such domains.
What you can do
You can also help him in learning such skills so that he behaves like a well behaved individual. For example, you can teach him how to behave when some guest arrives at your place or when you go outside to a restaurant to eat etc. This will not let your child feel that he is being dominated or forcefully taught behavioural skills. So just be supportive and in a fun filled manner, make your child a better individual so that he behaves like one in the future.