Added helper functions for toggling VIew visibility.