Changes: 
Added addEventListener functions to the buttons, that way I made the adding and deleting functions usable by other elements too.