table view and trigger