refactoring of news display