add pagination, page links, layout