adds labels to divs in new and edit pages