added pagination with apple style