add id by subheaders and by table captions