updated popup to be modal