Add the class UIControlUtil with the function displayAndHideElements