Swap between link and span depending on task state
Make better use of templates. Extract connector failure popup in new class