Handle the controller in the navigation stack.