add pagination and footer