Moved table border drawing code into viewDidAppear.