Make delete button functional