Added modal js and set pattern