adding model and table view