refactoring the display of publications