update pagniation and footer