add in modal js methods