added setSubviewsHidden function