correct behaviour on file choosing cancel action