added output and event/view communication with the state