Added a check to ensure a device port has been labeled and cleaned up an error that resulted in a false link when cancel was clicked. close #252