update index and sidebar.