event handler and html populates in console