Re-introduced a generic helper for the toolbar