updated display method, created an updateMessage function that executes the fetching + displaying all messages, removed all logic related to displaying messages inside the new display method