added delete function in functions panel