use bootstrap modal in file edit on discard

fixes #828