modified getRelatedDocs implementation and have it called based on the event from the doc instead of called after connect.