implementation of modal.js and modal.scss