make the modal partially work