add id to thread links

fixes #130