Ask for confirmation when leaving page whilst uploading

Resolves #77 for now