change html element type in pop-up. still have innerHTML of null error.