Code written for news page scroll