labels: add dynamic label functionality