Fixed a slew of bugs with the frame box modal