Adds detailsbox directive