a) define all buttons and show|hide necessary ones instead of adding deleting ( because invisible elements are not rendered and not attached to the dom - there is no overhead ) docs.dhtmlx.com/touch/doku.php?i … visibility
b) you still can reload toolbar with different sets of button