modified main-controller( fixed adhoc-navigation's bug )