add menubutton demo and update its api