Implemented output to DOM