Refactor code and add in the buttons to switch between previous/next dialog bubbles