Fix the toolbar of DeviceTemplateDetailViewPart