The thing about attention is that it has absolute qualities. That is, in terms of getting it, both negative attention and positive attention work. Sadly, negative attention is usually a lot easier to get, and so kids go there a lot, when they need attention. While you do need to confront your child's bad behavior and correct them to get them back in line, wherever possible, try catching them being good. The opportunities may be less than you would like, but the reward and benefit to your child will far outweigh the impact when you have to respond to their negative attention efforts.