update the top-bar