Refactor to update content after page detail received