removing cancel button in upload form if server responds