adds modal window (something not quite working yet)