added state publisher to controller