Got the deleteion sortof working.

But there seems to be a bug when I delete and then try to add again.