update accordion box titles when panel type changes