changed upload to fragment