work on button to turn on/off. should be inside displayNewMessage function.