easy way to deal with function of hide or show views when page scrolled