changing the way to open modals, more JS, less html
ignoring idea files