refactoring code for hide modal before removing or not calculation
refactoring code for hide modal before removing or not calculation

gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine