implement select/delete line