update methods for accurate buffering bar, css and html for sample.