replace time.After with time.Ticker
refact func start and stop of trigger
add unit test for poller