Make delete work again. Slight refactor on the backend of how it works