only show delete button if there is an entity