integrating upload to the with ui