Attempting to add an eventListener to set the height