changed response of upload to plotting the graph