merge toolbar and program code