fixed insert and delete

insert works if you press enter now.
delete function implemented.