fix row count when inserting lines
add cancel capability to record search