Implement pagination and apply bootstrap template.