Fixed cancel button state in importing. Fixes #591