adjust smoother timing and organize html tag