doine favs loading, pagination logic
merged