Every control on the front panel has a property node that controls whether the control is visible. You get the property by right clicking on the control >> create >> property node.
The idea is that you write to the property true when you want to change the values then write to the property false when you want the controls to disappear.
As an alternative, you may want to use a pop up VI for setting the properties.