function for updating all metadata on all pages added