troubleshooting the modal