adjust modal size, remove alerts when you leave page before it's done loading