Change test for whether iVars need to be refreshed, and place reset values at end of viewWillAppear immediately following reloadData.
Also updated reference to tableViewSections in didSelectRowAtIndexPath.