Updated inbox inbox-counter and placed in displayMessage function