Added possibility to change view controllers hierarchies in stack container.