fix upload and view connection