started adding message hiding and message total counter