finish adding has-notes class to content_items and note count badges