meta ordering, clean up template for detail