Pub/sub embeded in controller