add createToolBarButtons and scope global in directive
demo