Rewrote into function to get news and function to display news