Added a way to serialize a menubutton