Making the modal example work for copy pasters