migrating entries fetching and display to common functions