Fix subview closing and bad view creation

* setting a null right/left button no longer creates an unnecessary view
I’m not entirely sure why, but this was causing parent views to not
close.
* menu now closes correctly
* buttons now close correctly
* DRYier code
2.2.0