adds doc state badge