use bootstrap modal in file edit on discard
move modal functionality into discard()
Merge pull request #914 from ontohub/828-use_bootstrap_modal_in_file_edit

use bootstrap modal in file edit on discard