Fixed issue where table header button positions wouldn't initialise correctly. Replaced viewDidLayoutSubviews with viewDidAppear.