Change detail template ordering