added toggle top bar menu option to example