move change html bits to device ready.