line number generate in edit mode and checkbox change fix