switched to Object based app states.