moved methods pertaining to tableview datasource to new file