add functionality to appointment delete button