update header and sidebar