Add utility for toggling view visibility