clicking a doc link toggles the associated dialog