move tableSelector into CodeComments so we can use it in more than one view