stop downloading on click cancel button and check if url is incorrect