changed message area update process to use addClass and removeClass