Added shared state between controller