Added a function to return the dialogue's element.