navigation controller-like behavior for MacOS