add lines timing and change some layout in html