Add base code for toggle sub-menu