convert bootstrap toggling to javascript since it was no longer closing using css
fix problem where modal is hidden after scrolling down (due to control panel z-index) by placing modal outside the rest of the view container