modal js tweak
modal bug fixes