Not all of what you says makes sense but you can try this:
In _ProfitUI_SubclassDetector.xml find this:
Code:
<Textbox DynamicData="/GameData.Self.SubClass" Name="SC" OnChange="show_window Custom.ProfitUI_SubclassDetector
change to this:
Code:
<Text DynamicData="/GameData.Self.SubClass" Name="SC" OnTextChanged="show_window Custom.ProfitUI_SubclassDetector
Might help. Otherwise simply add
Code:
show_window Custom.ProfitUI_SubClassDetector
to the OnHoverIn of the Raid window. That's a bit messy but will work.
In ProfitUI the initalization is done by the control center which you probably did not copy over. Without that for cancel spellcast functionality you'd need to add CancelSpellcast="true" to the second line of the CuresCode.xml.