Callback for removeAllLines