added state sharing between controllers