added global intilizer for context on transition change