Fixed bug where tableview wasn't resizing in view