Adapt bootstrap modal to our purposes.