table with trigger (open, close)