Added html reflow and html repain