ViewStack: Use nextElementSibling/previousElementSibling instead of relying on Container methods. SidePane: Replace nextSibling by nextElementSibling (for consistency)