adding and deleting functions in place, buttons needed for triggers