Moved plotly upload to main program