almost finished functionality to add labels