make setControlElementsVisibility public  visible