Problem could happen when clicking in views in dashboards. The $container was looked up depth first when the view is created, but in some case, it is wrong (the correct order is actually breadth first). A better way to proceed is to get the reference when the view manager is created, so we don't have the problem at all.