added detector callback for env widget, close #95