code additions to table view