Update visibility of variables in controller