made delete button work again