refactored modal DOM
renamed JS functions to showModal and hideModal