changed global method call in controlpanel class