added trigger api and trigger history api. pending visualization of trigger-history