add paginate for the pages

and css style changed