function to display delete button