added localstorage sync override; added listener for file upload