update header and buttons