example with controller
updated doc