code rework, line count binding instead of DOM manipulation