Update button delete to new directive of jslibrary.delete