fixed incorrect function call for 'delete' onclick