handling everything for labels and markup