error handling, globally created internal ID, and added HTML to console