Added methods to remove a controller from the stack.