adding state manager