update the leftbar