added delete measure functionality