added listeners for delete buttons