Connecting gui to controller, initial version of tableview