add mac native toolbar code