Added visibility support for GUI elements