Hi,
Try something like this.
There was 2 times a Sub OnConnectClose() and i changed your first line closePrivButton("welc&pos&clos&ref");
Sub OnConnectClose()
closePrivButton("welc&pos&clos&ref");
openPrivButton( "config_bg",50,50,100,56,5,-1,32,"" );
openPrivButton( "config_title",51,51,98,5,5,-1,0,"^3Configure pitboard^8" );
openPrivButton( "config_title_2",51,56,98,5,5,-1,0,"^3V1.3^8" );
openPrivButton( "position_1a",51,61,15,5,5,-1,64,"Position:" );
openPrivButton( "position_1b",67,61,10,5,5,-1,16,"^2Left^8",Pitboard_left );
openPrivButton( "position_1c",78,61,10,5,5,-1,16,"Right",Pitboard_right );
openPrivButton( "position_1d",89,61,10,5,5,-1,16,"Off",Pitboard_off );
openPrivButton( "height_1a",51,67,15,5,5,-1,64,"Height:" );
openPrivButton( "height_1b",67,67,10,5,5,-1,16,"^2High^8",Pitboard_high );
openPrivButton( "height_1c",78,67,10,5,5,-1,16,"Low",Pitboard_low );
openPrivButton( "split_1a",51,73,15,5,5,-1,64,"Splits:" );
openPrivButton( "split_1b",67,73,10,5,5,-1,16,"2",Pitboard_spl2 );
openPrivButton( "split_1c",78,73,10,5,5,-1,16,"^23^8",Pitboard_spl3 );
openPrivButton( "split_1d",89,73,10,5,5,-1,16,"4",Pitboard_spl4 );
openPrivButton( "new",51,83,98,5,5,-1,64,"^3V1.3: Pitboard can now be set to the rightside of the screen" );
openPrivButton( "config_close_a",94,100,10,5,5,-1,16,"CLOSE",Config_close_b );
EndSub
Sub Config_close_b()
closePrivButton("config_bg&config_title&config_title_2&position_1a&position_1b&position_1c&position_1d&height_1a&height_1b&height_1c&split_1a&split_1b&split_1c&split_1d&new&config_close_a");
openGlobalButton( "logo",20,0,20,4,4,-1,0,"^7Your Text" );
EndSub