better menu support

changed to correctly toggle menu depending on how pages are open