Refactored the datasource code for the current level tableview.