Remove some coupling between form1 and StatPrincipal
somme cleanup