Put global state in app delegate