Blocking publishing with modal instead of disabling delete button