unified the function style
delete button works great now