Added destroy, hideSubmenus and showSubmenus methods