Move refreshNavigationState() call to prepare()