Add table view and table insert functionality