Added code for displayRecentHomepage and displayAll