add code button of toolbar