Bug in displayContentController:

If the controller passed to displayContentController is the same controller as the current topController, then it will first be added to the hierarchy, and after passing the conditional statement, it will be removed immediately. This small pull request flips the order, so that the top is removed first, and then the new controller is added.