Revert "fix problem for BS3 modal"

Reverts #665 in favor of #918 as this PR is more complete and uses a better option