New func takes care of visibility of GUI elements