added functionality to append quote to the DOM