Upload XML finished even not refreshing page

Delete writing of XML file in order to avoid new content on server side
and stop refreshing