Fix Abort button behavior

Now the Abort button is not visible if process has already been aborted or completed.